<?php

namespace app\admin\validate;

class SystemUpdateValidate extends BaseValidate
{
    /**
     * 定义验证规则
     * 格式：'字段名'	=>	['规则1','规则2'...]
     *
     * @var array
     */	
	protected $rule = [
        'username' => 'require|length:5,15',
        'oldPassWord' => 'require|min:6',
        'newPassWord' => 'require|min:6',
        'newPaw' => 'require|min:6',
    ];

    protected $message  =   [
        'username.require' => '用户名不能为空',
        'username.length' => '用户名长度在5 到 15 个字符之间',
        'oldPassWord.require' => '原密码不能为空',
        'oldPassWord.min' => '原密码不能小于6个字符',
        'newPassWord.require' => '新密码不能为空',
        'newPassWord.min' => '新密码不能小于6个字符',
        'newPaw.require' => '确认密码不能为空',
        'newPaw.min' => '确认密码不能小于6个字符'
    ];
}